package atom.core3.security.help;

public class IssueInfo
{
	private String name;
	private String company;
	private String organize;
	private String city;
	private String state;
	private String country;
	private String email;
	public String getIssueInfo()
	{
		//caIssue = "C=cn,ST=xinjiang,L=wulumuqi,O=sit,OU=soft,CN=sailing,EMAILADDRESS=sit@sit.com";// "C="+"CN"+",		
		StringBuffer sb = new StringBuffer();
		sb.append("CN="+name);
		sb.append(",OU="+company);
		sb.append(",O="+organize);
		sb.append(",L="+city);
		sb.append(",ST="+state);
		sb.append(",C="+country);
		sb.append(",EMAILADDRESS="+email);
		
		return sb.toString();
	}
	public static String getIssueInfo(String name,String company,String organize,String city,String state,String country,String email)
	{
		StringBuffer sb = new StringBuffer();
		sb.append("CN="+name);
		sb.append(",OU="+company);
		sb.append(",O="+organize);
		sb.append(",L="+city);
		sb.append(",ST="+state);
		sb.append(",C="+country);
		sb.append(",EMAILADDRESS="+email);
		
		return sb.toString();
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getCompany()
	{
		return company;
	}
	public void setCompany(String company)
	{
		this.company = company;
	}
	public String getOrganize()
	{
		return organize;
	}
	public void setOrganize(String organize)
	{
		this.organize = organize;
	}
	public String getCity()
	{
		return city;
	}
	public void setCity(String city)
	{
		this.city = city;
	}
	public String getState()
	{
		return state;
	}
	public void setState(String state)
	{
		this.state = state;
	}
	public String getCountry()
	{
		return country;
	}
	public void setCountry(String country)
	{
		this.country = country;
	}
	public String getEmail()
	{
		return email;
	}
	public void setEmail(String email)
	{
		this.email = email;
	}
	
}
